package com.nxhz.controller;

import com.nxhz.service.ITestSourceService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * com.nxhz.controller
 *
 * @author jierui
 * @version v1.0
 * @date 2020/11/27
 * 描述：TODO
 */
@RestController
@RequestMapping("/demo")
public class TestSourceController {

    @Autowired
    private ITestSourceService testSourceService;

    @ResponseBody
    @RequestMapping("/test-master-one")
    public AjaxResult testMasterAndOne(@RequestParam("id") int id){
        return testSourceService.testMasterAndOne(id);
    }

    @ResponseBody
    @RequestMapping("/test-master-two")
    public AjaxResult testMasterAndTwo(@RequestParam("id") int id){
        return testSourceService.testMasterAndTwo(id);
    }

    @ResponseBody
    @RequestMapping("/test-one-two")
    public AjaxResult testOneAndTwo(@RequestParam("id") int id){
        return testSourceService.testOneAndTwo(id);
    }

    @ResponseBody
    @RequestMapping("/test-master-one-two")
    public AjaxResult testMasterAndOneAndTwo(@RequestParam("id") int id){
        return testSourceService.testMasterAndOneAndTwo(id);
    }

}
